package com.ruoyi.log.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 操作日志对象 operation_log
 * 
 * @author sqlstudent
 * @date 2025-06-29
 */
public class OperationLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志ID */
    private Long id;

    /** 方法名称 */
    @Excel(name = "方法名称")
    private String methodName;

    /** 返回值 */
    @Excel(name = "返回值")
    private String returnValue;

    /** 执行时间(毫秒) */
    @Excel(name = "执行时间(毫秒)")
    private Long executionTime;

    /** 异常类型 */
    @Excel(name = "异常类型")
    private String exceptionType;

    /** 异常信息 */
    @Excel(name = "异常信息")
    private String exceptionMessage;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMethodName(String methodName) 
    {
        this.methodName = methodName;
    }

    public String getMethodName() 
    {
        return methodName;
    }

    public void setReturnValue(String returnValue) 
    {
        this.returnValue = returnValue;
    }

    public String getReturnValue() 
    {
        return returnValue;
    }

    public void setExecutionTime(Long executionTime) 
    {
        this.executionTime = executionTime;
    }

    public Long getExecutionTime() 
    {
        return executionTime;
    }

    public void setExceptionType(String exceptionType) 
    {
        this.exceptionType = exceptionType;
    }

    public String getExceptionType() 
    {
        return exceptionType;
    }

    public void setExceptionMessage(String exceptionMessage) 
    {
        this.exceptionMessage = exceptionMessage;
    }

    public String getExceptionMessage() 
    {
        return exceptionMessage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("methodName", getMethodName())
            .append("returnValue", getReturnValue())
            .append("executionTime", getExecutionTime())
            .append("exceptionType", getExceptionType())
            .append("exceptionMessage", getExceptionMessage())
            .append("createTime", getCreateTime())
            .toString();
    }
}
